import mysql from 'mysql2';
const connect=mysql.createPool({
    host: "127.0.0.1",
    port: 3306,
    user: "root",
    password: "123456",
    database: "homework",
})
//导出mysql连接池，promise操作对象
export default connect.promise();